package com.schooleducation.service;

import java.util.List;

import com.schooleducation.entity.LessonComment;
import com.schooleducation.entity.LessonReply;

/**
 * 留言，回复，私信service
 * @author weijing
 *
 */
public interface LessonCommentService {

	/**
	 * 获取留言列表
	 * @param lessonContentId
	 * @param page
	 * @return
	 */
	public List<LessonComment> getCommentList(int lessonContentId, int page);
	
	/**
	 * 发表留言信息
	 * @param lc
	 * @return
	 */
	public boolean addLessonComment(LessonComment lc);
	
	/**
	 * 获取留言列表，附加回复列表
	 * @param lessonContentId
	 * @param page
	 * @return
	 */
	public List<LessonComment> getCommentAndReplyList(int lessonContentId, int page);
	
	/**
	 * 发表回复
	 * @param lr
	 * @return
	 */
	public boolean addLessonReply(LessonReply lr);
	
	/**
	 * 根据留言获取回复列表
	 * @param lr
	 * @param start
	 * @return
	 */
	public List<LessonReply> getLessonReplyListByComment(int commentId, int start);
}
